package com.mxue;

import com.mxue.test.Add;
import com.mxue.test.Person;

import java.util.ArrayList;
import java.util.List;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws InterruptedException {
//        Add add = new Add();
//        int d = add.add(2, 3);
//        System.out.println(d);

        List<Person> personList = new ArrayList<>();

        new Thread(()->{
            while (true){}
        }).start();

        while (true){
            Person person = new Person("wangyexin","chenyina");
            personList.add(person);
            Thread.sleep(1000l);
        }
    }

}
